/**
 * date:2015-09-12 
 * author:douzaixing 
 * 1、所有内容需封装至jq的ready事件中
 * 2、内部变量名以__开头，内部函数名以_开头 
 * 3、此对话框用于树形结构更新名称时使用
 */
$(function() {
	function _init() {
		_toggleMenu();
	}

	function _render() {
		
	}

	function _bind() {
		
	}
	
	function _toggleMenu() {
		$("body").delegate("#hmMenu>li>a","click",function(e){
            e.stopPropagation();
            var _this = $(this).parent();
            var elementI = _this.find(".hm_menu_right_icon");
            if(elementI.hasClass("fa-caret-down")){
                elementI.removeClass("fa-caret-down").addClass("fa-caret-right");
            }else{
                elementI.removeClass("fa-caret-right").addClass("fa-caret-down");
            }
            _this.find("ol").stop(true, true).slideToggle();

        });
	}

	_init();
	_render();
	_bind();
});
